home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / traceback.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  614 b   |  24 lines

  1. #ifndef Py_TRACEBACK_H
  2. #define Py_TRACEBACK_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /* Traceback interface */
  8.  
  9. struct _frame;
  10.  
  11. DL_IMPORT(int) PyTraceBack_Here Py_PROTO((struct _frame *));
  12. DL_IMPORT(PyObject *) PyTraceBack_Fetch Py_PROTO((void));
  13. DL_IMPORT(int) PyTraceBack_Store Py_PROTO((PyObject *));
  14. DL_IMPORT(int) PyTraceBack_Print Py_PROTO((PyObject *, PyObject *));
  15.  
  16. /* Reveale traceback type so we can typecheck traceback objects */
  17. extern DL_IMPORT(PyTypeObject) PyTraceBack_Type;
  18. #define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
  19.  
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* !Py_TRACEBACK_H */
  24.